<?php
/*
 * @Author: your name
 * @Date: 2020-12-23 12:01:16
 * @LastEditTime: 2020-12-28 09:59:33
 * @LastEditors: Please set LastEditors
 * @Description: 客户端错误日志
 * @FilePath: /special/application/adminapiv3/controller/platform_manage/log/ClientErrorLogController.php
 */

namespace app\adminapiv3\controller\platform_manage\log;


use app\adminapiv3\controller\BaseController;
use app\adminapiv3\service\platform_manage\log\ClientErrorLogService;
use think\Request;

class ClientErrorLogController extends BaseController
{

    public function list(Request $request)
    {
        $params['data_source'] = $request->get('data_source');//数据来源
        $params['module'] = $request->get('module');//模块名称
        $params['source'] = $request->get('source');//数据来源
        $params['error_msg'] = $request->get('error_msg');//错误信息
        $params['error_time'] = $request->get('error_time');//错误时间

        $server = new ClientErrorLogService();
        $list = $server->list($params);

        return $this->jsonOutPut($list);
    }
}